﻿
--#include "data\functions\Activity\ActivityLog.lua"   once         --活动参与日志记录
--#include "data\functions\Activity\HistoryTask.lua" once 	--昨天未完成的任务
--#include "data\functions\Activity\PublicTest.lua" once 	--公测活动
--#include "data\functions\recharge\FirstRecharge.lua" once --首冲
--#include "data\functions\Activity\OpenServer\OpenServerHandler.lua" once --开服活动
--#include "data\functions\Activity\Fation\FationHandler.lua" once --时装幻武
--#include "data\functions\Activity\LivenessActivity.lua"   once         --活跃度
--#include "data\functions\Activity\KnightErrant.lua"   once         --侠客行


MiscsImplement.FirstRechargeHandler = function( sysarg, msgid, packet )
  local OperateType = DataPack.readByte(packet)
  if OperateType == 0 then
      SendFirstRechargeGetState(sysarg)
  elseif OperateType == 1 then
      GetFirstRechargeAward(sysarg)
  end
end


MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetFirstCharge, MiscsImplement.FirstRechargeHandler)

MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cLivenessActivity, OnLivenessActivity) -- 活跃度活动
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cHistoryTask, OnHistoryTaskMsg) -- 昨天未完成的任务
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cPublicTest, OnMsgPublicTest) -- 公测活动
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cKnightErrant, OnKnightErrant) -- 侠客行活动
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetFashionRechargeAward, GetFashionRechargeAward)--时装首充
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cHeroGodWeaponOp, HeroGodWeaponRechargeOp)--英雄神兵累充
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cRechargeSceneTele, TeleToRechargeSceneNpc)--充值地图传送